{% extends "base.html" %}

{% block title %}{{page.title}}{% endblock %}

{% block extrahead %}
<link rel="alternate" type="application/rss+xml" title="{{cur_site.name}} news (rss)" href="/feeds/rss/news/" />
<link rel="alternate" type="application/atom+xml" title="{{cur_site.name}} news (atom)" href="/feeds/atom/news/" />
{% endblock %}

{% block content %}

    {{page.content|safe}}


    {% for object in latest_news %}
      {% if forloop.first %}
          {# create a fake paginator to get the link to comments #}
          {% with 1 as paginator %}
          {% include "news/segment.html" %}
          {% endwith %}
       <h2>Previous news</h2>
       <ul>
      {% else %}
          <li><a href="{{ object.get_absolute_url }}">{{object.title}}</a> 
              by {{object.creator|userlink}}, {{object.created|localtime:request}}</li>
      {% endif %}
          
    {% endfor %}
    </ul>

{% endblock %}